<?php
require_once('../phplib/include.inc.php');
require_once('../phplib/util/CheckLogin.inc.php');

class Admin_Addnews extends PageBase{
	public function Ini(){
		$oFCKeditor = new MyFckEditor('content') ;
		$oFCKeditor->Height = 400;
		$html = $oFCKeditor->CreateHtml();
		$this->assign("editor",$html);
		
		$this->GetCategory();
	}
	public function GetCategory(){
		$db = getDb();
		$re = $db->fetch("SELECT * FROM category");
		$this->assign("cats",$re);
	}
}
$a = new Admin_Addnews("file:".dirname(__FILE__)."/../admin/addnews.tpl.html");
$a->display();
?>